package cz.jm.web.manhunter.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.shared.HandlerManager;
import com.google.gwt.user.client.ui.RootLayoutPanel;

import cz.jm.web.manhunter.client.common.DialogWidget;
import cz.jm.web.manhunter.client.services.UserDataService;
import cz.jm.web.manhunter.client.services.UserDataServiceAsync;

public class ManHunter implements EntryPoint  {

  public void onModuleLoad() {	 
	 UserDataServiceAsync userDataService = GWT.create(UserDataService.class);
	 HandlerManager eventBus = new HandlerManager(null);

	 RootLayoutPanel.get().add((new DialogWidget()).asWidget());
	 AppView appView = new AppView();
	 AppController appController = new AppController(userDataService, eventBus, appView);
	 appController.go(RootLayoutPanel.get());
  }
  
}
